<template>
    <div>
		<List>
		    <ListItem>
		        <ListItemMeta title="资金余额" />
				<template #action>
				    <li>
				        <div >
							<span>{{amount}}</span>元
						</div>
				    </li>
				</template>
		    </ListItem>
		    <ListItem>
		        <ListItemMeta title="商户信息"  />
		        <template #action>
		            <li>
		                <a @click="showshxx">查看</a>
		            </li>
		        </template>
		    </ListItem>
		    <ListItem>
		        <ListItemMeta title="平台管理"  />
		        <template #action>
		            <li>
		               <a @click.prevent="showptgl">查看</a>
		            </li>
		        </template>
		    </ListItem>
			<ListItem>
			    <ListItemMeta title="小程序信息"  />
			    <template #action>
			        <li>
			            <a @click.prevent="showxcxxx">查看</a>
			        </li>
			    </template>
			</ListItem>
			<ListItem>
			    <ListItemMeta title="技术支持"  />
			</ListItem>
		</List>
	</div>
</template>
<script>
    export default {
        data(){
			return{
				
				amount : 0
				
			}
		},
		methods : {
			showshxx :function(){
				this.$router.detail.open({
					name : "shxx"
				})
			},
			showptgl :function(){
				this.$router.detail.open({
					name : "ptgl"
				})
			},
			showxcxxx :function(){
				this.$router.detail.open({
					name : "xcxxx"
				})
			}
		},
		created : function(){
			this.http.get({
				url: "/settings/homepage",
			}).then(data => {
				console.log(1);
				console.log(data);
				this.amount = data.amount;
			});
			
		}
    }
</script>
<style scoped>
	.button-container {  
	    display: flex;  
	    justify-content: flex-end;  
	    margin-top: 20px; /* Adjust as needed */  
	}  
</style>